package cn.wolfcode.car.business.service;

import cn.wolfcode.car.business.domain.BpmnInfo;
import cn.wolfcode.car.common.base.page.TablePageInfo;
import cn.wolfcode.car.common.base.query.QueryObject;

import java.io.FileNotFoundException;
import java.io.InputStream;

public interface IBpmnInfoService {

    BpmnInfo get(Long id);

    TablePageInfo<BpmnInfo> query(QueryObject qo);

    void save(String uploadPath, BpmnInfo bpmnInfo) throws Exception;

    void update(BpmnInfo bpmnInfo);

    void deleteById(Long id);

    InputStream readResource(String deploymentId, String type);

    BpmnInfo queryType(String type);
}
